package org.easyupdater;

import org.easyupdater.model.ApplicationSpec;

public interface IBackupManager {

	/**
	 * Backs up the applicaition spec file and all the JAR bundles referenced by
	 * it
	 * 
	 * @param applicationSpec
	 *            the application specification
	 * @return boolean value indicating if the backup was successful or not
	 */
	boolean backupApplication(ApplicationSpec applicationSpec);

	/**
	 * Reverts an application that was previously backed up
	 * 
	 * @param applicationSpec
	 *            an application spec referring to an application that has been
	 *            previously backed up
	 * @return boolean value indicating whether the reverting was successful
	 */
	boolean revertApplication(ApplicationSpec applicationSpec);
}
